/**
 * 根据获取的数据构成表尾字段组件需要的数据集合 *
 * @recordNo 单据号
 * @operName 提交人
 * @opeTime 提交时间
 * @operDepName 提交部门
 * @operAreaName 区域
 * @commitStateStr 审核状态
 * @reason 原因
 */
export const getFooterFieldFn = (data) => {
  if (!data) {
    return {
      recordNo: '',
      operName: '',
      opeTime: '',
      operDeptName: '',
      operAreaName: '',
      commitStateStr: '',
      reason: ''
    }
  }
  let {
    recordNo,
    pusherName,
    pushTime,
    pusherDeptName,
    pusherAreaName,
    operName,
    opeTime,
    operDeptName,
    operAreaName,
    commitStateStr,
    reason
  } = data
  let footerFields = {
    recordNo,
    operName: operName || pusherName,
    opeTime: opeTime || pushTime,
    operDeptName: operDeptName || pusherDeptName,
    operAreaName: operAreaName || pusherAreaName,
    commitStateStr,
    reason
  }
  return footerFields
}
